//
//  JoinListVC.swift
//  BasketballScorer
//
//  Created by hasx on 2023/11/6.
//

import UIKit

class JoinListVC: UIViewController,UITableViewDelegate,UITableViewDataSource {

    

    @IBOutlet weak var JoinTableV: UITableView!
    override func viewDidLoad() {
        super.viewDidLoad()

        JoinTableV .register(UINib.init(nibName: "JoinTableCell", bundle: nil), forCellReuseIdentifier: "JoinTableCell")
        JoinTableV.separatorStyle = .none
    }
    
    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        return 90
    }
    
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 3
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "JoinTableCell", for: indexPath) as? JoinTableCell
        return cell!
    }
    
    
    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let startVC = StartVC()
        startVC.title = "Start Team"
        self.navigationController?.pushViewController(startVC, animated: true)
    }
    


    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
